package cn.js.ccit.flowersmall.goldCoin.service.impl;

import cn.js.ccit.flowersmall.goldCoin.entity.GLDDetailEntity;
import cn.js.ccit.flowersmall.goldCoin.entity.GLDUserEntity;
import cn.js.ccit.flowersmall.goldCoin.mapper.GLDDetailMapper;
import cn.js.ccit.flowersmall.goldCoin.mapper.GLDUserMapper;
import cn.js.ccit.flowersmall.goldCoin.service.GLDService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GLDServiceImpl implements GLDService {
    @Resource
    GLDDetailMapper detailMapper;
    @Resource
    GLDUserMapper userMapper;
    @Override
    public GLDUserEntity getGLDByUserName(String userName) {
        return userMapper.getGLDByUserName(userName);
    }

    @Override
    public List<GLDDetailEntity> findGLDDetails(String userName) {
        return detailMapper.findGLDDetails(userName);
    }
}
